package com.yupi.yupao.utils;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;

import java.util.List;

/**
 * @author 曹宏福
 * @version 1.0
 * 标签字段Json转字符数组工具类
 */
@SuppressWarnings({"all"})
public class StringUtils {
    /**
     * 字符串json数组转为
     *
     * @param jsonList
     * @return
     */
    public static List<String> stringJsonListToLongList(String jsonList) {
        Gson gson = new Gson();
        List<String> result = gson.fromJson(jsonList, new TypeToken<List<String>>() {
        }.getType());
        return result;
    }
}
